<template>
    <div class="program">
        <div class="program-cont" v-for="(item,index) in zaoList" :key="index">
            <a href="javascript:;">
                <div class="cover">
                    <img :src="item.cover" alt="">
                </div>
                <ul class="program-list">
                    <li class="title">
                        <h3>{{ item.title }}</h3>
                    </li>
                    <li class="cost">
                        <span>{{ item.price }}</span>
                    </li>
                </ul>
            </a>
        </div>
    </div>
</template>

<script>
export default {
    props: ['zaoList'],
}
</script>

<style>
.program .program-cont {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background:rgba(255,255,255,1);
    box-shadow:0px 0.15rem 0.3rem 0px rgba(233,235,238,0.84);
    margin-bottom: 0.6rem;
}
.program .program-cont a .cover {
    width: 6.78rem;
    height: 2.6rem;
}
.program .program-cont a .cover img {
    width: 100%;
    height: 100%;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.program .program-cont a .program-list {
    padding: 0.3rem 0;
    display: flex;
    justify-content: space-between;
    width: 6.78rem;
}
.program .program-cont a .program-list .title h3 {
    font-size: 0.36rem;
    font-family:PingFangSC-Medium;
    font-weight:500;
    color:rgba(51,51,51,1);
    line-height: 0.5rem;
    overflow: hidden;
    text-overflow:ellipsis;
    white-space: nowrap;
    width: 4.2rem;
    margin-left: 0.2rem;
}
.program .program-cont a .program-list .cost span {
    font-size: 0.28rem;
    font-family:PingFangSC-Medium;
    font-weight:500;
    color:rgba(255,60,84,1);
    line-height: 0.4rem;
    margin-right: 0.2rem;
}
</style>
